<h1>Request Group Rate</h1>
<from>
    <input type="hidden" name="referrer">
    Name: <input type="text" id="fieldName" name="name">
    Group size: <input type="text" name="groupSize">
    Email: <input type="text" name="email">
    <input type="submit" value="Submit">
</from>
<script>
    $(document).ready(function(){
        $('input[name="referrer"]').val(document.referrer);
        console.log(document.referrer, 'referrer')
        console.log($('input[name="referrer"]').val(), 'value')
    })
</script>
